package 继承案例;

public class test {
    public static void main(String[] args) {
        student s=new student();
        teacher t=new teacher();
        s.setAge(18);
        s.setName("李佳辉");
        s.write();
        t.setAge(28);
        t.setName("俞章程");
        t.pi();
    }
}
